package cn.wolfcode.business.service;


import cn.wolfcode.business.domain.BusAppointment;

import java.util.Date;
import java.util.List;

public interface BusAppointmentService {
    /**
     * 查询所有养修预约的信息，传递一个参数用于高级查询
     * @param busAppointment
     * @return
     */
    List<BusAppointment> selectBusAppointmentList(BusAppointment busAppointment);

    /**
     * 根据id查询一条养修预约信息，用于编辑时回显页面
     * @param id
     * @return
     */
    BusAppointment getInfo(Long id);

    /**
     * 新增一条养修预约信息
     * @param busAppointment
     * @return
     */
    Integer add(BusAppointment busAppointment);

    Integer update(BusAppointment busAppointment);

    /**
     * 到店功能的实现
     * @param id
     * @return
     */
    Integer arrival(Long id);

    Integer cancel(Long id);

    Integer deleteById(Long id);

    int payUpdateStates(Long appointId);
}
